package com.hicar.util;

/**
 * Created by ilex on 2016/5/5.
 */
public class PathUtils {
    public static String join(boolean localSystemStyle, String... pathes) {
//        String seperator = (localSystemStyle && OsCheck.getOperatingSystemType() == OsCheck.OSType.Windows) ? "\\" : "/";

        StringBuilder builder = new StringBuilder();
//        String prev = null;
        for (String path : pathes) {
            String finalPath = path;
//            if (prev != null) {
//                if (prev.endsWith(seperator) && path.startsWith(seperator)) {
//                    finalPath = path.substring(1);
//                } else if (!prev.endsWith(seperator) && !path.startsWith(seperator)) {
//                    finalPath = seperator + path;
//                }
//            }
            builder.append(finalPath);
//
//            prev = finalPath;
        }

        return builder.toString();
    }

}
